import request from '@/utils/request'

// 查询潜在学员列表
export function listStudent(query) {
  return request({
    url: '/teacher/student/list',
    method: 'get',
    params: query
  })
}

// 查询潜在学员详细
export function getStudent(id) {
  return request({
    url: '/teacher/student/' + id,
    method: 'get'
  })
}

// 新增潜在学员
export function addStudent(data) {
  return request({
    url: '/teacher/student',
    method: 'post',
    data: data
  })
}

// 修改潜在学员
export function updateStudent(data) {
  return request({
    url: '/teacher/student',
    method: 'put',
    data: data
  })
}

// 删除潜在学员
export function delStudent(id) {
  return request({
    url: '/teacher/student/' + id,
    method: 'delete'
  })
}


// 接管潜在学员
export function takeOverStudent(id) {
  return request({
    url: '/teacher/student/takeOverStudent/' + id,
    method: 'get'
  })
}
// 放弃潜在学员
export function abandonStudent(id) {
  return request({
    url: '/teacher/student/abandonStudent/' + id,
    method: 'get'
  })
}

